package com.song.rabbitmq.springbootorderrabbitmqconsumerdirect.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * 邮件服务
 */

@RabbitListener(queues = {"sms.direct.queue"})
@Service
public class SMSService {

    @RabbitHandler
    public void messagerevice(String message){
        System.out.println("sms 接收到了订单信息是===>" + message);
        // 此处省略发邮件的逻辑
    }
}
